<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>system</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../css/public.css" media="all">
	<!-- 引入样式 -->
	<link rel="stylesheet" href="../../../lib/element-ui/lib/theme-chalk/index.css">
    <style>
        body {
            background-color: #ffffff;
        }
		.avatar-uploader .el-upload {
			border: 1px dashed #d9d9d9;
			border-radius: 6px;
			cursor: pointer;
			position: relative;
			overflow: hidden;
		}
		.avatar-uploader .el-upload:hover {
			border-color: #409EFF;
		}
		.avatar-uploader-icon {
			font-size: 28px;
			color: #8c939d;
			width: 60px;
			height: 60px;
			line-height: 60px;
			text-align: center;
		}
		.avatar {
			width: 60px;
			height: 60px;
			display: block;
		}
	</style>
</head>
<body>
<div id="appContainVue" class="layui-form layuimini-form">
	<div class="layui-form-item">
	    <label class="layui-form-label required">APP版本</label>
	    <div class="layui-input-block">
			<input type="hidden" id="newAppSize" v-model="newAppSize" name="newAppSize" lay-verify="required" lay-reqtext="APP不能为空" placeholder="请上传APP" value="" class="layui-input">
			<input type="hidden" id="newAppUrl" v-model="newAppUrl" name="newAppUrl" lay-verify="required" lay-reqtext="APP不能为空" placeholder="请上传APP" value="" class="layui-input">
			<input type="hidden" id="newAppLogo" v-model="newAppLogo" name="newAppLogo" lay-verify="required" lay-reqtext="APP不能为空" placeholder="请上传APP" value="" class="layui-input">
			<el-upload
			  class="avatar-uploader"
			  :action="uploadAppUrl"
			  :show-file-list="false"
			  :on-success="handleAvatarSuccess"
			  :before-upload="beforeAvatarUpload">
			  <img v-if="appLogoUrl" :src="appLogoUrl" class="avatar">
			  <i v-else class="el-icon-plus avatar-uploader-icon"></i>
			</el-upload>
			<tip>请选择Apk</tip>
		</div>
	</div>
	
	<div class="layui-form-item">
	    <label class="layui-form-label required">App名称</label>
	    <div class="layui-input-block">
			<input type="hidden" id="appId" name="appId"/>
			<input type="hidden" id="IsForceUpdate" name="IsForceUpdate" value="false"/>
	        <input type="text" id="appName"  v-model="appName" name="appName" autocomplete="off"  lay-verify="required" lay-reqtext="App名称不能为空" placeholder="请选择App名称" value="" class="layui-input">
		</div>
	</div>
	
	<div class="layui-form-item">
	    <label class="layui-form-label required">版本编号</label>
	    <div class="layui-input-block">
	        <input type="text" id="newAppVersionCode" v-model="newAppVersionCode" name="newAppVersionCode" lay-verify="required" lay-reqtext="版本编号不能为空" placeholder="请输入版本编号" value="" class="layui-input">
	    </div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label required">App包名</label>
		<div class="layui-input-block">
			<input type="text" id="appPackageName" v-model="appPackageName" name="appPackageName" lay-verify="required" lay-reqtext="安装包名不能为空" placeholder="请输入版本编号" value="" class="layui-input">
		</div>
	</div>
	
    <div class="layui-form-item">
        <label class="layui-form-label required">版本名称</label>
        <div class="layui-input-block">
            <input type="text" id="newAppVersionName" v-model="newAppVersionName" name="newAppVersionName" lay-verify="required" lay-reqtext="版本名称不能为空" placeholder="请输入版本名称" value="" class="layui-input">
        </div>
    </div>
	
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label required">版本内容</label>
        <div class="layui-input-block">
            <textarea  id="newAppUpdateDesc"  name="newAppUpdateDesc" class="layui-textarea" lay-verify="required" placeholder="请输入版本内容"></textarea>
        </div>
    </div>

	<div class="win-submit-btn">
		<button class="layui-btn layui-btn-normal comfirm-submit-btn" lay-submit lay-filter="saveBtn">确认保存</button>
	</div>
</div>
<script src="../../../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="../../../js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script src="../../../lib/jquery-3.4.1/jquery-3.4.1.min.js" charset="utf-8"></script>
<script src="../../../js/crypto-js.min.js"></script>
<script src="../../../api/util.js" charset="utf-8"></script>
<script src="../../../api/request.js" charset="utf-8"></script>
<!-- import Vue before Element -->
<script src="../../../js/vue.js"></script>
<!-- import JavaScript -->
<script src="../../../lib/element-ui/lib/index.js"></script>
<script src="../../../js/custom/system/app/edit.js"></script>
</body>
</html>